<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <?php echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8'); ?>
    <?php echo $this->headTitle(); ?>
    <?php echo $this->headLink(); ?>
    <?php echo $this->headScript(); ?>
    <script type="text/javascript">
        $(document).ready(function() {
            var mainmenu = $('#nav_menu > ul');
            var header = mainmenu.find('ul').parent();
            header.each(function(i) {
                $(this).hover(
                    function(e) {
                        $(this).children("ul:eq(0)").slideDown(200);
                    },
                    function(e) {
                        $(this).children("ul:eq(0)").slideUp(100);
                    }
                );
            });
            
            //Examples of how to assign the ColorBox event to elements
            $(".iframe").colorbox({iframe:true, width:"82%", height:"82%"});
            
            $(".iframe2").colorbox({iframe:true, width:"42%", height:"75%"});
            
            //Example of preserving a JavaScript event for inline calls.
            $("#click").click(function(){ 
            	$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
            	return false;
            });
        });
        
        $(function() {
            $('#tabs').tabs();
        });
    </script>
</head>
<body>
<div class="container">
    <!-- Begin Header -->
    <div class="header">
        <div class="logo">
            <img src="<?php echo $this->baseUrl('/public/templates/admin/'); ?>images/logo.png" />
        </div>
        
        <?php 
        	$auth = Zend_Auth::getInstance();
        	$infoUser = $auth->getIdentity();
        ?>
        <div class="user_cp">
            <ul>
                <li>Chào mừng, <?php echo $infoUser->email; ?></li>
                <li><a href="<?php echo $this->baseUrl('admincp/user/profile'); ?>">Thông tin cá nhân</a></li>
                <li><a href="<?php echo $this->baseUrl('admincp/index/logout'); ?>">Thoát</a></li>
            </ul>
        </div>
    </div>
    <!-- End Header -->
    
    <!-- Begin Nav -->
    <div class="nav" id="nav_menu">
        <ul>
            <li><a class="visit_site" target="_blank" href="<?php echo $this->baseUrl(''); ?>">Trang chủ</a></li>
            <li><a class="control" href="<?php echo $this->baseUrl('admincp/hotel'); ?>">Khách sạn</a></li>
            <li><a class="control" href="<?php echo $this->baseUrl('admincp/resort'); ?>">Nghỉ dưỡng</a></li>
            <li><a class="control" href="<?php echo $this->baseUrl('admincp/boating'); ?>">Du thuyền</a></li>
            <li><a class="control" href="<?php echo $this->baseUrl('admincp/sales'); ?>">Ưu đãi</a></li>
            <li><a class="control" href="<?php echo $this->baseUrl('admincp/article'); ?>">Cảnh điểm nổi bật</a></li>
            <li>
                <a class="control" style="cursor: pointer;">Đặt phòng</a>
                <ul>
                    <li><a href="<?php echo $this->baseUrl('admincp/reservation'); ?>">Đặt phòng thông thường</a></li>
                    <li><a href="<?php echo $this->baseUrl('admincp/specialreservation'); ?>">Đặt phòng theo yêu cầu</a></li>
                </ul>
            </li>
            <li><a class="setting" style="cursor: pointer;">Hệ thống</a>
                <ul>
                    <li><a href="<?php echo $this->baseUrl('admincp/tag'); ?>">Quản lý khu vực</a></li>
                    <li><a href="<?php echo $this->baseUrl('admincp/location'); ?>">Quản lý địa điểm</a></li>
                    <li><a href="<?php echo $this->baseUrl('admincp/page'); ?>">Quản lý trang</a></li>
                </ul>
            </li>
            <li><a class="user" href="<?php echo $this->baseUrl('admincp/user'); ?>">Tài khoản</a></li>
            <!--<li><a class="info" href="<?php echo $this->baseUrl('admincp/contact'); ?>">Thông tin website</a></li>-->
        </ul>
    </div>
    <!-- End Nav -->
    
    <div class="sidebar">
        <div class="heading_sidebar">
            <span>Tùy chọn</span>
        </div>
    
        <?php echo $this->layout()->content; ?>
</div>

<!-- Begin Footer -->
<div class="footer">
    <span>Copyright TiviCMS - 06/2013. All Rights Reserved.</span>
</div>
<!-- End Footer -->
</body>
</html>